//
//  CTTextManager.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/4/20.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface CTTextManager : NSObject



+(CTTextManager*)shareInstance;


/* ==================== 字体处理 ==================== */

/**
 * params path:字体文件路径 size:字体大小
 */
-(UIFont*)customFontWithPath:(NSString*)path
                        size:(CGFloat)size;



/* ==================== 文本处理 ==================== */
/**
 * params 判断字符串是否为空
 */
- (BOOL) isBlankString:(NSString *)string;

/**
 * params 判断字符串是否含特定字符
 */
-(BOOL)isFoundString:(NSString *)foundStr
             withStr:(NSString *)targetStr;

/*
 * 正则，判断不支持特殊字符与空格
 */
-(BOOL)isMatch:(NSString *)str;

/*
 * 判断字节长度
 */
-(int)charNumber:(NSString*)strtemp;


/*
 * 时间戳转换时间
 */

-(NSString *)timestampToTime:(NSString *)timestampStr;

@end